<div ng-if="pagedata.op=='get'" class="fui-page fui-page-current">
    <div class='fui-content' >
		<div class="fui-cell-group" style="margin-top:0">
			<div class="fui-tab fui-tab-success">
					<a ng-class="{'active':pagedata.post.type==5}" ng-click="pagedata.settype(5);">代理奖金结算</a>
					<a ng-class="{'active':pagedata.post.type==6}" ng-click="pagedata.settype(6);">平级奖金结算</a>
			</div>
		</div>
		<div class="tips tips-yellow">
			<i class="fa fa-bullhorn"></i> [<red>温馨提示</red>]：{{pagedata.msg}}
		</div>
		<div class="tips tips-yellow">
			<i class="fa fa-bullhorn"></i> [<red>温馨提示</red>]：{{pagedata.tips}}
		</div>
        <div class='fui-cell-group fui-cell-group-o'>
            <div class='fui-cell-title'>
                <div class='fui-cell-info' style='color:#999'>当前可结算奖金: ￥
					<span id='current'>{{pagedata.post.fee}}</span>
				</div>
				<div class='fui-cell-info' style='color:#999'>当前可结算积分: 
					<span id='current'>{{pagedata.post.jifen}}个</span>
				</div>
            </div>
					<div class="fui-cell">
						<div class="fui-cell-label" style="width: 120px;"><span class="re-g">提现方式</span></div>
						<div class="fui-cell-info">
							<select id="applytype" ng-model="pagedata.post.pay_type">
								<option ng-repeat="(k,title) in pagedata.pay_types" value="{{k}}" ng-selected="pagedata.post.pay_type==k">{{title}}</option>
							</select>
						</div>
						<div class="fui-cell-remark"></div>
					</div>
					<div ng-if="pagedata.post.pay_type =='alipay' || pagedata.post.pay_type =='union'" class="fui-cell ab-group">
						<div class="fui-cell-label" style="width: 120px;">真实姓名</div>
						<div class="fui-cell-info"><input type="text" id="realname" name="realname" ng-model="pagedata.post.realname" class='fui-input' value="{{pagedata.post.realname}}" max="25"/></div>
					</div>
					<div ng-if="pagedata.post.pay_type =='alipay'" class="fui-cell alipay-group">
						<div class="fui-cell-label" style="width: 120px;">支付宝帐号</div>
						<div class="fui-cell-info">
						<input type="text" id="alipay" name="alipay" class='fui-input' ng-model="pagedata.post.alipay" value="{{pagedata.post.alipay}}" max="25"/>
						</div>
					</div>
					<div ng-if="pagedata.post.pay_type =='alipay'" class="fui-cell alipay-group">
							<div class="fui-cell-label" style="width: 120px;">确认帐号</div>
							<div class="fui-cell-info"><input type="text" id="alipay1" ng-model="pagedata.post.alipay1" name="alipay1" class='fui-input' value="{{pagedata.post.alipay1}}" max="25"/></div>
					</div>
					<div ng-if="pagedata.post.pay_type =='union'" class="fui-cell bank-group" >
							<div class="fui-cell-label" style="width: 120px;">所属银行</div>
							<div class="fui-cell-info">
								<input type="text" name="bankname" class='fui-input' ng-model="pagedata.post.bankname" value="{{pagedata.post.bankname}}"/>
							</div>
					</div>
					<div ng-if="pagedata.post.pay_type =='union'" class="fui-cell bank-group">
							<div class="fui-cell-label" style="width: 120px;">银行卡号</div>
							<div class="fui-cell-info"><input type="text" id="bankcard" name="bankcard" class='fui-input' ng-model="pagedata.post.bankcard" value="{{pagedata.post.bankcard}}" max="25"/></div>
					</div>
					<div ng-if="pagedata.post.pay_type =='union'" class="fui-cell bank-group">
							<div class="fui-cell-label" style="width: 120px;">确认卡号</div>
							<div class="fui-cell-info"><input type="text" id="bankcard1" name="bankcard1" class='fui-input' ng-model="pagedata.post.bankcard1" value="{{pagedata.post.bankcard1}}" max="25"/></div>
					</div>
					<div ng-if="pagedata.post.pay_type!='credit'" class='fui-cell-title disabled'>提现手续费为 <text class='text-danger'> {{pagedata.pluginset.balance_per || 0}}</text>%</div>
					<div ng-if="pagedata.post.pay_type!='credit'" class='fui-cell-title charge-group disabled' style="padding-top:0">本次提现将扣除手续费 ￥<text class='text-danger'> {{pagedata.data.service_money || '0.00'}}</text>
					</div>

					<div ng-if="pagedata.post.pay_type!='credit'" class='fui-cell-title charge-group disabled' style="padding-top:0">本次提现实际到账金额 ￥<text class='text-danger'> {{pagedata.data.cash_money || '0.00'}}</text>
					</div>
        </div>
        <a id='btn-next' class='btn btn-success block ' ng-click="post(pagedata.post,'/jiangjin/balance/','','','确定要现在结算吗?'+pagedata.msg)">提现</a>
    </div>
</div>
<div ng-include="sys_html('common/_footer')"></div>
<script>
scope.pagedata.settype=function(type){
	scope.pagedata.post.type=type;
	if(type==6){
		scope.pagedata.tips=pagedata.tips2;
		scope.pagedata.msg=pagedata.msg2;
		scope.pagedata.post.fee=pagedata.ping_fee;
		scope.pagedata.post.jifen=pagedata.ping_jifen;
	}else{
		scope.pagedata.tips=pagedata.tips1;
		scope.pagedata.msg=pagedata.msg1;
		scope.pagedata.post.fee=pagedata.daili_fee;
		scope.pagedata.post.jifen=pagedata.daili_jifen;
	}
}
</script>